<?php

namespace App\Repository\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

/**
 * Class Attributes.
 *
 * @package namespace App\Repository\Models;
 */
class Attributes extends Model implements Transformable
{
    use TransformableTrait;
    use SoftDeletes;
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['name','sort','remark','is_sku'];
    
    public function attrValues(){
        return $this->hasMany(AttributeValues::class,'attribute_id','id');
    }

}
